﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/admin.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="admin_user_Default" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<link href="../artcles/StyleSheet.css" type="text/css" rel="Stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <h1>用户管理</h1>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" EnableModelValidation="True" ForeColor="#333333" 
            GridLines="None" Width="700px" >
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <Columns>
                
                <asp:BoundField DataField="UserID" HeaderText="ID" ItemStyle-Width="40px" >
                <ItemStyle Width="40px" />
                </asp:BoundField>
                <asp:BoundField DataField="UserName" HeaderText="用户名" />
                <asp:BoundField DataField="Email" HeaderText="Email" ItemStyle-Width="200px" >
                <ItemStyle Width="200px" />
                </asp:BoundField>
                <asp:BoundField DataField="CreateDate" HeaderText="创建日期" 
                    ItemStyle-Width="100px" >
                
                <ItemStyle Width="100px" />
                </asp:BoundField>
                
                
                <asp:TemplateField ItemStyle-Width="40px">
                    <ItemTemplate>
                        <a href="edit.aspx?uid=<%#DataBinder.Eval(Container.DataItem,"UserID") %>" target="_blank">编辑</a>
                    </ItemTemplate>
                </asp:TemplateField>
                
                
            </Columns>
        </asp:GridView>
        <webdiyer:AspNetPager ID="AspNetPager1"
         PageSize="20" AlwaysShow="true" UrlPaging="true"
         runat="server" onpagechanged="AspNetPager1_PageChanged" 
            PagingButtonLayoutType="Span" ShowCustomInfoSection="Left">
        </webdiyer:AspNetPager>
    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

